package com.zhaoye.config;

import com.zhaoye.entities.CommonResult;
import com.zhaoye.entities.Payment;
import com.zhaoye.service.PaymentService;
import org.springframework.stereotype.Component;

/**
 * @author feng
 * @Date 2021/11/21 17:02
 * //fallback兜底
 */
@Component
public class PaymentFallbackService implements PaymentService {

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(44444,"服务降级返回，",new Payment(id,"error"));
    }
}
